# -*-ecoding:utf-8 -*-
import x
import json

url = 'http://127.0.0.1:8080/tools/add_DNS_IP'
with open('', 'r') as f:
    for line in f:
        data = {
            'ip': line
        }
        req = requests.post(url, data=json.dumps(data))
        print(req.status_code)
